package com.czkt.shop.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class RedisTokenUtils {

    @Autowired
    StringRedisTemplate redisTemplate;

    public Integer token(String token){
        return Integer.parseInt(redisTemplate.opsForValue().get(token));
    }
}
